package com.chushouya.manager.dto.admin.merchant.admin;

import com.chushouya.manager.constants.DeductStatusEnum;
import com.chushouya.manager.constants.MerchantStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class MerchantDetailDTO {

    @ApiModelProperty("回收商ID")
    private Long merchantId;

    @ApiModelProperty("回收商名称")
    private String merchantName;

    @ApiModelProperty("回收商照片")
    private String merchantPhoto;

    @ApiModelProperty("回收商备注")
    private String merchantRemark;

    @ApiModelProperty("回收商联系人")
    private String contactUser;

    @ApiModelProperty("回收商联系人手机号")
    private String contactPhone;

    @ApiModelProperty("省份")
    private String province;

    @ApiModelProperty("城市")
    private String city;

    @ApiModelProperty("区县")
    private String area;

    @ApiModelProperty("区域编码")
    private Long adCode;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("审核结果")
    private String auditRemark;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("状态")
    private String statusDesc;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("是否绑定")
    private Integer bindStatus;

    @ApiModelProperty("代扣状态")
    private Integer deductStatus;

    @ApiModelProperty("代扣状态描述")
    private String deductStatusDesc;

    public String getStatusDesc() {
        return MerchantStatusEnum.getDesc(this.status);
    }

    public String getDeductStatusDesc() {
        return DeductStatusEnum.getDesc(this.deductStatus);
    }
}
